package com.doordu.web.admin.rest;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试demo
 * 
 * @ClassName: HelloWorldController
 * @Description:
 * @author xiaoqun.yi yixq@doordu.com
 * @date 2017年3月27日 下午4:01:47
 * @version V1.3
 */

@RestController
public class HelloWorldController {
	@RequestMapping("/index/{name}")
	public String index(@PathVariable String name) {

		if (null == name) {
			name = "boy";
		}
		return "hello world" + name;
	}

}
